<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class Prize extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('prize',function (Blueprint $table){
            $table->engine="InnoDB";
            $table->increments("id");
            $table->string('name');
            $table->integer("rank_id");
            $table->integer("count");
            $table->integer('attach_id');
            $table->char('passwd');
            $table->text('info');
            $table->integer("chance");
            $table->integer('status');
            $table->integer('cash');
            $table->rememberToken();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('prize');
    }
}
